<meta charset="utf-8">
<?php
require_once("tools.php");

$con = new con_db();

$sql    = "SELECT * FROM Persons 
	       WHERE zhanghao = '$_POST[id]'";
$result = $con->query($sql);

while ($row = $result->fetch_assoc()) {
    if ($row['email'] == $_POST['email']) {
        echo "你的密码是" . $row['mima'];
        $link1 = 'index.php';
        echo "<a href='{$link1}' title=''>找回密码</a>";
    } else {
        echo "返回登录页面";
        $link1 = 'index.php';
        echo "<a href='{$link1}' title=''>找回密码</a>";
    }
}
?>